package com.smedi.ismedi.inmail.core.domain.service;

import com.smedi.ismedi.inmail.core.domain.aggregatemodel.announcement.Announcement;
import org.springframework.web.context.request.RequestAttributes;

import java.io.IOException;

/**
 * 业务服务接口
 *
 * @author niuyanling
 * @date 2021/7/27
 */
public interface RecordDomainService {

    /**
     * 初始化流转单
     *
     * @param announcement 通知公告
     */
    void initRecordsByAnnouncement(Announcement announcement) throws IOException;

    /**
     * 更新流转单
     *
     * @param announcement 通知公告
     */
    void updateRecordByStatistics(Announcement.Statistics statistics, Announcement announcement) throws IOException;
}